package com.huangliusong.desigin.pattern.structual.proxy;

/**
 * @author huangliusong
 * @since 2018/10/13
 * {@link }
 */
public class OrderServiceImpl implements IOrderService{
    private IOrderDao iOrderDao;

    public int saveOrder(Order order) {
        //spring会自己注入
        iOrderDao=new OrderDaoImpl();
        System.out.println("service调用dao层添加order");
        return iOrderDao.insert(order);
    }
}
